package com.hz.house.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.hz.house.service.detail.BuildingDetailService;

/**
 * 项目启动立即执行某些函数
 * 
 * @author lfw
 *
 */
@Component
public class SpringCommand implements CommandLineRunner{

	@Autowired
	private BuildingDetailService bdService;
	
	@Override
	public void run(String... args) throws Exception {
		
		//项目启动立即执行的方法
		
		//1、启动访问量同步线程
		bdService.startVisitWorker();
		
		//2、
	}

}
